package homework.course;

public class Message {

    private String content;
    private MessageType type;

    public Message(String text, MessageType type) {
        this.content = text;
        this.type = type;
    }

    public MessageType getType() {
        return type;
    }

    @Override
    public String toString() {
        return content;
    }
}
